package com.lxqhmlwyh.qingtingfm.entities;

import java.util.List;

/**
 * 搜索结果json
 */
public class FMCardViewJson {
    private int content_id;
    private String content_type;
    private String cover;
    private String title;
    private String description;

    private NowPlaying nowplaying;

    private int audience_count;
    private String liveshow_id;
    private String update_time;

    private List<Category> categories;
    private Region region;
    private City city;

    public int getContent_id() {
        return content_id;
    }

    public void setContent_id(int content_id) {
        this.content_id = content_id;
    }

    public String getContent_type() {
        return content_type;
    }

    public void setContent_type(String content_type) {
        this.content_type = content_type;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 潜在bug
     * @return
     */
    public NowPlaying getNowplaying() {
        if (nowplaying==null){
            NowPlaying temp=new NowPlaying();
            temp.setDuration(0);
            temp.setId(0);
            temp.setName("null");
            temp.setStart_time("null");
            return temp;
        }
        return nowplaying;
    }

    public void setNowplaying(NowPlaying nowplaying) {
        this.nowplaying = nowplaying;
    }

    public int getAudience_count() {
        return audience_count;
    }

    public void setAudience_count(int audience_count) {
        this.audience_count = audience_count;
    }

    public String getLiveshow_id() {
        return liveshow_id;
    }

    public void setLiveshow_id(String liveshow_id) {
        this.liveshow_id = liveshow_id;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public List<Category> getCategories() {
        return categories;
    }

    public void setCategories(List<Category> categories) {
        this.categories = categories;
    }

    public Region getRegion() {
        return region;
    }

    public void setRegion(Region region) {
        this.region = region;
    }

    public City getCity() {
        return city;
    }

    public void setCity(City city) {
        this.city = city;
    }
}